package com.xoa.controller.supervision;

import com.xoa.model.supervision.SupFeedBackReply;
import com.xoa.model.supervision.SupervisionApply;
import com.xoa.service.supervision.SupFeedBackReplyService;
import com.xoa.util.ToJson;
import com.xoa.util.common.wrapper.BaseWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by gsb on 2017/8/7.
 */
@RestController
@RequestMapping("/supFeedBackReply")
public class SupFeedBackReplyController {
    @Autowired
    private SupFeedBackReplyService  supFeedBackReplyService;

    @RequestMapping("/insertsupFeedBackReply")
    public BaseWrapper insertsupFeedBackReply(SupFeedBackReply supFeedBackReply, HttpServletRequest request){
        return  supFeedBackReplyService.insetrtSupFeedBackReply(supFeedBackReply,request);

    }
    @RequestMapping("/deleteByPrimaryKey")
    public ToJson<SupFeedBackReply> deleteByPrimaryKey(HttpServletRequest request,Integer sid){

        return  supFeedBackReplyService.deleteByPrimaryKeySupFeedBackReply(request,sid);
    }
}
